import request from '@/utils/request'
//获取spu列表数据的接口函数
export function reqgetBaseSpu(page,limit,params) {
    const {category3Id} = params
  return request({
    url: `/admin/product/${page}/${limit}?category3Id=${category3Id}`,
    method: 'get',
  })
}

//删除spu数据 单条
export function reqDelOneSpu(id){
    return request({
        url: `/admin/product/deleteSpu/${id}`,
        method:'delete'
    })
}

//根据传过来的id获取sku信息
export function reqGetOneskuInfo(id){
    return request({
        url:`/admin/product/findBySpuId/${id}`
        ,method:'get'
    })
}